#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
char* my_strstr(char* p1, char* p2)
{
	char* p = p1;
	while (*p)
	{
		char* pa = p;
		char* pb = p2;
		while (*pa == *pb && *pa && *pb )
		{
			pa++;
			pb++;
		}
		if (*pb == '\0')
			return p;
		p++;
	}
	return NULL;
}
int main()
{
	char arr1[] = "abcd";
	char arr2[] = "abcd";
	char* ret = my_strstr(arr1, arr2);
	printf("arr1[]=%s\narr2[]=%s\n", arr1, arr2);
	printf("%s", ret);
	return 0 ;
}